home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000093_icon-group-sender _Thu Jun 18 12:58:11 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  3KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id MAA01774
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Thu, 18 Jun 1998 12:58:11 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA22775; Thu, 18 Jun 1998 12:58:01 -0700
  7. Message-Id: <v03102801b1af164869df@[128.102.120.213]>
  8. Mime-Version: 1.0
  9. Content-Type: text/plain; charset="us-ascii"
  10. Date: Thu, 18 Jun 1998 11:28:04 -0800
  11. To: icon-group@baskerville.CS.Arizona.EDU
  12. From: Michael Shafto <mshafto@mail.arc.nasa.gov>
  13. Subject: here's a funnny one!
  14. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  15. Status: RO
  16. Content-Length: 2511
  17.  
  18. This is a kind of semi-meta-story about Icon:
  19. It's not really about Icon, but it's a lot
  20. funnier if you have written a bit of
  21. Icon code.
  22.  
  23. I was at home playing with my laptop like
  24. a cub bear with a box of candy.
  25.  
  26. I had 8 text files consisting of Icon
  27. source code (about 10 pages of print-out
  28. per file). I could have, as in years past,
  29. copied these files onto a diskette, put the
  30. diskette in my pocket, and trekked off to
  31. work.
  32.  
  33. But no.
  34.  
  35. In the spirit of learning by doing, I dragged
  36. the files into a 'Transfer' folder on my laptop,
  37. and dragged them out of a similar folder on my
  38. work computer.
  39.  
  40. I edited away for a while (mercifully, as
  41. it turned out, altering only three of the
  42. eight files), dragged 'em back into the
  43. work 'Transfer' folder, and out again on
  44. the laptop at home.
  45.  
  46. This is where the funny part happens: The
  47. demons which had been lashed to the oars of the
  48. file transfer process had surgically removed
  49. every token preceded by a backslash (\). Let
  50. that sink in for a minute while I provide a
  51. few examples:
  52.  
  53. "\n"
  54. "\B0"
  55. and lots of other things
  56. map to ""
  57.  
  58. \x[3]
  59. maps to [3]
  60.  
  61. (\smfun)(ar)
  62. maps to ()(ar)
  63.  
  64. \Ck_disable
  65. maps to _disable [sic -- demons break for _]
  66.  
  67. if \altered then bazz(fazz)
  68. maps to
  69. if then bazz(fazz)
  70.  
  71. dyv <:= \ymin
  72. dyv >:= \ymax
  73. n := N+1
  74.  
  75. maps to
  76.  
  77. dyv <:=
  78. dyv >:=
  79. n := N+1
  80.  
  81.  
  82. Funny, no?
  83.  
  84.  
  85. Even funnier is the following conjecture:
  86. Let wu (or Griswold's Fraction) be the probability
  87. that an Icon procedure containing at least one such
  88. alteration will compile with a "no errors" message.
  89. Then wu is in the closed interval (0.67,0.75).
  90.  
  91.  
  92. Telecommuters everywhere, beware!
  93. I have no idea what "software product" is responsible
  94. for this problem (certainly it has nothing to do with Icon),
  95. but I'm a little suspicious of the RTF step which I know
  96. is part of this transfer sequence.
  97.  
  98. Anyway, the experience is a bit like sitting on
  99. a cactus, and I expect to be in recovery for a few more
  100. days.
  101.  
  102. Mike
  103.  
  104.  
  105. ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -------
  106. Mike Shafto (mshafto@mail.arc.nasa.gov)
  107. Chief, Human-Automation Integration Research Branch
  108. On detail (6/1/98 - 9/30/98) to the Computational Sciences Division
  109. http://olias.arc.nasa.gov/
  110. Mail Stop 262-4
  111. NASA-Ames Research Center
  112. Moffett Field,  CA       94035-1000
  113. ---------------------------------------------------------------
  114. Those are my principles. If you don't like them I have others.
  115.                                               -- Groucho Marx
  116. ---------------------------------------------------------------
  117.  
  118.  
  119.